{% extends 'layout_two_column.html' %}

{% block js_files %}
{% endblock %}

{% block content_left %}
{% ifequal campaign_id None %}
    {% include "search_results_sidebar.html" %}
{% else %}
    {% include "search_results_results.html" %}
{% endifequal %}
{% endblock content_left %}

{% block content_right %}
{% ifequal campaign_id None %}
    {% include "search_results_results.html" %}
{% else %}
    {% include "search_results_sidebar.html" %}
{% endifequal %}
{% endblock content_right %}


{% block width_left  %}{% ifequal campaign_id None %}242px{% else %}100%{% endifequal %}{% endblock %}
{% block width_right %}{% ifequal campaign_id None %}100%{% else %}300px{% endifequal %}{% endblock %}

{% block prefooter %}
{% if optimize_page %}
  <script type='text/javascript' src='http://open.gmodules.com/ig/proxy?url=http%3A%2F%2Fsuprfetch.appspot.com%2F%3Furl%3D{{host}}%2Fzx{{version}}%2Fjs%2Fsnippets_list.js%26url%3D{{host}}%2Fzx{{version}}%2Fjs%2Fmap.js%26url%3D{{host}}%2Fzx{{version}}%2Fjs%2Fsearch_results.js%26url%3D{{host}}%2Fzx{{version}}%2Fjs%2Fcalendar_widget.js%26jsmin%3Dtrue'></script>
{% else %}
  <script type='text/javascript' src='/zx{{version}}/js/snippets_list.js'></script>
  <script type='text/javascript' src='/zx{{version}}/js/map.js'></script>
  <script type='text/javascript' src='/zx{{version}}/js/search_results.js'></script>
  <script type='text/javascript' src='/zx{{version}}/js/calendar_widget.js'></script>
  {% endif %}
{% endblock prefooter %}
